package com.ctgu.fastleader.service.serviceImpl;

import com.ctgu.fastleader.dao.GoodsSeatMapper;
import com.ctgu.fastleader.service.GoodsSeatService;
import com.ctgu.fastleader.vo.GoodsSeat;
import com.ctgu.fastleader.vo.GoodsSeatKey;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GoodsSeatServiceImpl implements GoodsSeatService {
    @Autowired
    GoodsSeatMapper goodsSeatMapper;

    @Override
    public GoodsSeat selectByPrimaryKey(GoodsSeatKey key) {
        return goodsSeatMapper.selectByPrimaryKey(key);
    }

    @Override
    public int insert(GoodsSeat record) {
        return goodsSeatMapper.insert(record);
    }

    @Override
    public int updateByPrimaryKey(GoodsSeat record) {
        return goodsSeatMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<GoodsSeat> findAllGoodsInSeat(Integer goodsid) {
        return goodsSeatMapper.findAllGoodsInSeat(goodsid);
    }

    @Override
    public int deleteByPrimaryKey(GoodsSeatKey key) {
        return goodsSeatMapper.deleteByPrimaryKey(key);
    }

    @Override
    public List<GoodsSeat> findAllRecordByShelfIdAndHouseId(String shelfid, Integer houseid) {
        return goodsSeatMapper.findAllRecordByShelfIdAndHouseId(shelfid,houseid);
    }
}
